<?php

/**
 * Object/College.php
 */

namespace RHX\Model\Object;

class College {

    public $id;
    public $libelle;

    /**
     * Constructeur
     *
     * @param array $data
     */
    public function __construct($data = array()) {
	$this->exchangeArray($data);
    }

    /**
     * Remplissage
     * 
     * @param array $data
     */
    public function exchangeArray($data) {
	$this->id	 = isset($data['id']) ? (int) $data['id'] : null;
	$this->libelle	 = isset($data['libelle']) ? $data['libelle'] : '';
    }

}

?>
